const jwt:any = require('jsonwebtoken');
const serect:any = 'token';  //密钥，不能丢
module.exports =(tokens) => {
    if (tokens){
        // 解析
        let decoded = jwt.decode(tokens, serect);
        return decoded;
    }
};
export {}